from django.db import models

# Create your models here.


class InterfaceCases(models.Model):
    id = models.AutoField(primary_key=True)
    note = models.CharField(u'接口说明', max_length=100)
    path = models.CharField(u'路径', max_length=100)
    params = models.TextField(u'参数', null=True)
    method = models.CharField(u'请求方法', max_length=100)
    contentType = models.CharField(u'参数类型', max_length=100)
    checkKeys = models.TextField(u'校验字段')
    checkValues = models.TextField(u'校验数值')
    create_date = models.DateTimeField(u'创建时间', auto_now_add=True, editable=True)
    update_time = models.DateTimeField(u'更新时间', auto_now=True)

    def __str__(self):
        return self.note